From: Sam Reed Date: Thu, 24 Mar 2011 21:21:15 +0000 (+0000) Subject: Commiting simplest hack fix for strict errors X-Git-Tag: 1.31.0-rc.0~31205 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=77e28f5385933526290a0c40d61e18c204b17648;p=lhc%2Fweb%2Fwiklou.git Commiting simplest hack fix for strict errors Instantiating new instance of UtfNormal Will probably nee tidying up later, if we have some other instance we can normally use --- diff --git a/languages/Language.php b/languages/Language.php index a6ae98adf5..360c9b4a34 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2035,7 +2035,8 @@ class Language { */ function normalize( $s ) { global $wgAllUnicodeFixes; - $s = UtfNormal::cleanUp( $s ); + $u = new UtfNormal; + $s = $u->cleanUp( $s ); if ( $wgAllUnicodeFixes ) { $s = $this->transformUsingPairFile( 'normalize-ar.ser', $s ); $s = $this->transformUsingPairFile( 'normalize-ml.ser', $s );